﻿@using System.Reflection
@inject ICachedDataService dataService
@inject IJSRuntime jsRuntime

<div class="damselfly-about">
    <div>
        <img src="damselfly-logo.png" height="200" title="Damselfly"/>
    </div>
    <h3>Damselfly v<span/>@Version <VersionChecker/></h3>
    <h4>&copy; 2019-@DateTime.Now.Year Mark Otway, All rights reserved.</h4>
    <h4>Server-based Digital Asset Management system</h4>
    <hr/>
    <h3>Credits/Thanks</h3>
    <p>
        Powered by <NavLink href="http://blazor.net" target="_blank">Blazor</NavLink>.
        GUI Elements by <NavLink href="https://mudblazor.com/" target="_blank">MudBlazor</NavLink>.
        Image Processing by <NavLink href="https://github.com/mono/SkiaSharp" target="_blank">SkiaSharp</NavLink>
        and <NavLink href="https://github.com/SixLabors/ImageSharp" target="_blank">SixLabors ImageSharp</NavLink>
        and <NavLink href="https://imagemagick.org/">ImageMagick</NavLink> <span/>.
        Facial detection and recognition by <NavLink href="https://github.com/FaceONNX/FaceONNX">FaceONNX</NavLink>.
        Object Detection and image classification by <NavLink href="https://github.com/NickSwardh/YoloDotNet" target="_blank">YoloDotNet</NavLink>.
        <NavLink href="https://exiftool.org/">ExifTool</NavLink> <span/>@dataService.ExifToolVer by Phil Harvey.
        <NavLink href="https://github.com/jellever/DominantColor">Dominant Colour</NavLink> calculation by Jelle Vergeer.
        <NavLink href="https://github.com/shaigem/BlazorPanzoom/">Pan &amp; Zoom</NavLink> by Ronnie Tran
        Icons by <NavLink href="https://fontawesome.com/" target="_blank">Font-Awesome</NavLink>.
        Maps by <NavLink href="https://www.openstreetmap.org/copyright">OpenStreetMap</NavLink> and <NavLink href="https://www.syncfusion.com/blazor-components">Syncfusion</NavLink>.

    </p>
    <h4> Documentation and Updates</h4>
    <p>
        For documentation etc, see the <NavLink href="https://github.com/webreaper/damselfly">Damselfly Github</NavLink> Page.
        For information, updates and other news about Damselfly:
        <ul>
            <li>
                <NavLink href="https://twitter.com/damselflyphotos"><i class="fab fa-twitter"></i> Twitter</NavLink>
            </li>
            <li>
                <NavLink href="https://reddit.com/r/damselflyphotos"><i class="fab fa-reddit"></i> Reddit</NavLink>
            </li>
            <li>
                <NavLink href="@mastodonUrl"><i class="fab fa-mastodon"></i> Mastodon</NavLink>
            </li>
        </ul>
    </p>
    <h4> Want to Support Damselfly?</h4>

    <p>
        Damselfly is free, open-source software. But if you find it useful, and fancy buying me a coffee or a slice of pizza, that would
        be appreciated!
        <div>
            <a href="https://www.buymeacoffee.com/damselfly" target="_blank">
                <img src="https://cdn.buymeacoffee.com/buttons/arial-green.png" alt="Buy Me A Coffee" height="41" width="174">
            </a>
        </div>
    </p>
</div>

@code {
    public string Version => Assembly.GetExecutingAssembly()?.GetName()?.Version?.ToString();
    private string mastodonUrl => "https://fosstodon.org/@damselfly";
}